package asava.trees;

import asava.names.Name;

import java.util.List;

/**
 * @author Tim Richter
 */
public final class Unit extends Tree {
    public Name packageName;
    public List<Tree> imports;
    public Tree declaration;

    public Unit(final Name packageName,
                final List<Tree> imports,
                final Tree declaration) {
        this.packageName = packageName;
        this.imports = imports;
        this.declaration = declaration;
    }

    @Override
    public int kind() {
        return TreeKind.UNIT;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
